package com.tgy.entity;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/***
 * @ClassName: User
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 11:08 2021/12/17
 * @version : V1.0
 */

@Data
@ToString
@Component("user")
// 相当于配置文件中 <bean id="user" class="当前注解的类"/>
public class User {
    @Value("送你一块二向箔")
    // 相当于配置文件中 <property name="name" value="送你一块二向箔"/>
    private String name ;

}
